package com.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.common.PaginatedResult;
import com.persistence.TPlayer;
import com.persistence.dao.PlayerDao;

@Service("playerService")
public class PlayerServiceDao implements PlayerService{

	@Autowired
	PlayerDao playerDao;
		
	public PlayerDao getPlayerDao() {
		return playerDao;
	}

	@Override
	@Transactional(readOnly=false)
	public TPlayer insert(TPlayer transientInstance) {
		// TODO Auto-generated method stub
		return playerDao.insert(transientInstance);
	}

	@Override
	@Transactional(readOnly=false)
	public TPlayer update(TPlayer detachedInstance) {
		// TODO Auto-generated method stub
		return playerDao.update(detachedInstance);
	}

	@Override
	@Transactional(readOnly=false)
	public Boolean remove(TPlayer persistentInstance) {
		// TODO Auto-generated method stub
		return playerDao.remove(persistentInstance);
	}

	@Override
	@Transactional(readOnly=false)
	public Boolean removeList(List<TPlayer> list) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public TPlayer findById(Integer id) {
		// TODO Auto-generated method stub
		return playerDao.findById(id);
	}

	@Override
	public List<TPlayer> findByProperty(String propertyName, Object value,
			int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return playerDao.findByProperty(propertyName, value, rowStartIdxAndCount);
	}

	@Override
	public List<TPlayer> findAll(int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return playerDao.findAll(rowStartIdxAndCount);
	}

	@Override
	public List<TPlayer> findLikeProperty(String propertyName, Object value,
			int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TPlayer> findLikeMapOfProperties(
			Map<String, Object> propertiesMap, int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TPlayer> findByMapOfProperties(
			Map<String, Object> propertiesMap, int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer countAll() {
		// TODO Auto-generated method stub
		return playerDao.countAll();
	}

	@Override
	public Integer countLikeProperty(String propertyName, Object value) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer countByProperty(String propertyName, Object value) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer countLikeMapOfProperties(Map<String, Object> propertiesMap) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer countByMapOfProperties(Map<String, Object> propertiesMap) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PaginatedResult<TPlayer> paginateLikeMapOfProperties(
			Map<String, Object> propertiesMap, int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PaginatedResult<TPlayer> paginateAll(int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PaginatedResult<TPlayer> paginateByMapOfProperties(
			Map<String, Object> propertiesMap, int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

}
